package com.pr.sentinel;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

/**
 * @description:
 * @projectName:spring-skill
 * @see:com.pr.sentinel
 * @author:LXC
 * @createTime:2024/7/19 15:14
 * @version:1.0
 */
@RestController
public class TestController {

    @Autowired
    private TestService service;

    @GetMapping(value = "/hello/{name}")
    public String apiHello(@PathVariable String name){
        return service.sayHello(name);
    }
}
